package com.czk.utils;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/6/23 16:59
 */
public class DataSourceContext {
    private static ThreadLocal<String> threadLocal=new ThreadLocal<>();
    public static void setDatasource(String s){
        threadLocal.set(s);
    }
    public static String getDatasource(){
        return threadLocal.get();
    }
    public static void remove(){
        threadLocal.remove();
    }
}
